package exercise01;

public class RunTest01 {

    static{
         System.out.println("hello");
    }

    {
        
    }
    public static void main(String[] args) {
        Test01 test01 = new Test01();
        Test01 test02 = new Test01();

        test01Value(test01);
        System.out.println(test01.a);

        RunTest01 runTest01 = new RunTest01();
        runTest01.test01Value(test02);
        System.out.println(test02.a);


    }

    public static void test01Value(Test01 test01) {
        test01.a = 1;
    }

    public void hello(){
        test01Value(new Test01);
    }
}
